package cn.ddiancan.xddcloud.ddccore.mulidatasource.entity;

/**
 * 多数据源标识
 *
 * @author Amos
 * @since 2024-08-19
 */
public enum DataSourceEnum {
    Master("Master", "主库"),
    Slave("Slave", "从库");

    private String name;

    private String code;

    DataSourceEnum(String name, String code) {
        this.name = name;
        this.code = code;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
